package com.lpit.controller;

import com.lpit.result.ResponseResult;
import com.lpit.service.impl.ViewFansServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/check")
public class ViewFansController {
    @Autowired
    ViewFansServiceImpl viewStatisticalDataService;

    /**
    * 查看粉丝数量
    */
    @GetMapping("/fans")
    public ResponseResult<Long> getFansCount(){
        return viewStatisticalDataService.getFansCount();
    }
}
